# coding = utf-8

'''
新生成的数据和原始数据的对比
'''

import numpy as np
import matplotlib.pyplot as plt

def diff():
    cluster_image_file = "/media/dl/Lancer/Dataset/chengkun_liver_cluster2/case_00010/imaging/118.npy"
    cluster_label_file = "/media/dl/Lancer/Dataset/chengkun_liver_cluster2/case_00010/segmentation/118.npy"

    image_file = "/datasets/DongbeiDaxue/chengkun_only_liver/case_00010/imaging/118.npy"
    label_file = "/datasets/DongbeiDaxue/chengkun_only_liver/case_00010/segmentation/118.npy"

    cluster_image = np.load(cluster_image_file)
    cluster_label = np.load(cluster_label_file)
    image = np.load(image_file)
    label = np.load(label_file)

    print(np.unique(cluster_label), np.unique(label))

    plt.subplot(2, 2, 1)
    plt.imshow(cluster_image, cmap="gray")
    plt.subplot(2, 2, 2)
    plt.imshow(cluster_label, cmap="gray")
    plt.subplot(2, 2, 3)
    plt.imshow(image, cmap="gray")
    plt.subplot(2, 2, 4)
    plt.imshow(label, cmap="gray")
    plt.show()




if __name__ == '__main__':
    diff()